package masterlink.futures.dao;


import masterlink.futures.vo.SysAlert;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

@Repository("SysAlertSetDao")
@Qualifier("SysAlertSetDao")
public class SysAlertSetDao extends TimesTenHibernateDao<SysAlert,String>{
	private static final String FIND1="from SysAlert where name= ? ";

	public int findByDL1(String name) {
		SysAlert sa ;
		try{
			sa = (SysAlert)super.findByHql(FIND1,name).get(0);
		}catch(Exception e){
			return 0;
		}
		return sa.getDownlimit();
	}
}
